<!-- 确认订单页面 -->
<template>
  <div class="order">
    <div v-if="orderDetail.address">
      <router-link to="/address">

          {{orderDetail.address.name}} -- {{orderDetail.address.address}}{{orderDetail.address.address_detail}}
        {{orderDetail.address.mobile}}
      </router-link>
      
    </div>
    <div v-else>
        <router-link to="/address">去选择收货地址</router-link>
    </div>
  </div>
</template>

<script>
import {
    detailAction as detailActionApi
} from '@/api/order'
export default {
  name:'Order',
  data () {
    return {
        orderDetail:{}
    }
  },

  components: {},

  computed: {},

  created() {
    this.getOrderDetail()
  },

  mounted() {},

  methods: {
    async getOrderDetail(){
        let res = await detailActionApi({
            openId:localStorage.getItem('openId'),
            // addressId:''
        })
        this.orderDetail = res
    }
  }
}

</script>
<style lang='scss' scoped>
</style>